:root {
    --s-color-theme: var(--el-color-primary); /*主题色*/
    --s-left-width: 260px;
    --s-right-width: 400px;
}

*, body {
    padding: 0;
    margin: 0;
}

.s-curd-container {
    display: flex;
    height: 100vh;
    justify-content: center;
}

.s-curd-container .s-title {
    font-size: 18px;
    font-weight: bold;
    color: inherit;
    text-decoration: none;
}
.s-curd-container .left .s-title {
    margin-bottom: 10px;
}
.s-curd-container .s-title:not(:first-child){
    margin-top: 30px;
}

.s-curd-container .left, .s-curd-container .right {
    padding: 10px;
    z-index: 9;
}

/*左侧*/
.s-curd-container .left {
    flex: 0 0 var(--s-left-width);
    width: var(--s-left-width);
    box-shadow: 5px 0 5px -5px rgba(0, 0, 0, 0.2);
}

.s-curd-container .left .item {
    width: calc(var(--s-left-width) / 3);
    display: inline-flex;
    text-align: center;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 70px;
    vertical-align: middle;
}

.s-curd-container .left .item:hover {
    background-color: var(--s-color-theme);
    color: #fff;
}

.s-curd-container .left .item > .icon {
    font-size: 18px;
    width: 100%;
    height: 18px;
}

.s-curd-container .left .item .label {
    font-size: 13px;
    margin-top: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 80px;
}

/*中间*/
.s-curd-container .center .item.component.inline {
    min-width: 200px;
    width: auto;
    height: 50px;
}

.s-curd-container .center .item.component {
    position: relative;
    height: 20px;
    overflow: hidden;
    width: 100%;
    z-index: 1;
}

.s-curd-container .center .item.component:before {
    content: " ";
    position: absolute;
    background-color: var(--s-color-theme);
    height: 100%;
    width: 100%;
    z-index: 2;
    top: 0;
    left: 0;
}

.s-curd-container .center {
    flex: auto;
    height: 100%;
    overflow-y: auto;
    background-color: #EFF1F7;
    position: relative;
}

.s-curd-container .center .tools {
    background-color: #fff;
    padding: 10px;
    z-index: 19;
    position: absolute;
    top: 0;
    box-shadow: 5px 5px 5px -5px rgba(0, 0, 0, 0.2);
}

/*表格*/
.s-curd-container .center .table-box {
    padding: 60px 10px 10px;
}
.s-curd-container .center .table-draggable-box {
    border: 1px dashed #d3d3d3;
    min-height: 20px;
}
.s-curd-container .center .table-column {
    min-height: 30px;
    background-color: #fff;
}
.s-curd-container .center .table-column .item.field {
    min-height: 26px;
    white-space: nowrap;
    overflow: hidden;
}
.s-curd-container .center .table-column .s-chosen{
    border: 1px dashed var(--s-color-theme);
}
.s-curd-container .center .table-column .s-ghost {
    position: absolute;
    z-index: 999;
    top: 13px;
    left: 12px;
    width: calc(100% - 30px);
}
.s-curd-container .center .table-column .item.component {
    min-height: 26px;
}
.s-curd-container .center .item.component {
    border: 1px dashed var(--s-color-theme);
}

.s-curd-container .center .item.component:before {
    background-color: #fff;
}

/*表单*/
.s-curd-container .center .field-draggable-box {
    padding: 60px 10px 10px;
}
.s-curd-container .center .field-draggable-box:empty {
    height: 60vh;
}

.s-curd-container .center .item {
    padding: 2px;
    border: 1px dashed #d3d3d3;
    margin-bottom: 2px;
    background-color: #fff;
    position: relative;
}

.s-curd-container .item.field.active {
    border: 1px dashed var(--s-color-theme);
}

.s-curd-container .item.field .close {
    display: inline-block;
    position: absolute;
    z-index: 999;
    top: 0;
    right: 0;
    cursor: pointer;
}

/*右侧*/
.s-curd-container .right {
    flex: 0 0 var(--s-right-width);
    width: var(--s-right-width);
    overflow: hidden;
    overflow-wrap: break-word;
    box-shadow: -5px 0 5px -5px rgba(0, 0, 0, 0.2);
}

.s-curd-container .right .json-editor {
    height: calc(100% - 60px);
}

.s-curd-container .right .tab-label {
    display: flex;
    align-items: center;
}

.s-curd-container .right .tab-label>i {
    margin-left: 5px;
}

/*输出*/
.s-output{
}
.s-output .tab-2{
    display: flex;
}
.s-output .tab-2 .lang{

}
.s-output .tab-2 .content{
    flex: 1;
    overflow: auto;
    max-height: 60vh;
    font-family: serif;
}